

body {
    font-family: 'Roboto', 'Noto Sans Devanagari', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f6fa;
}

/* Header Styles */
.hospital-header {
    background: linear-gradient(135deg, #007bff, #00c4b4);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.hospital-brand {
    display: flex;
    align-items: center;
    justify-content: center;
}


.hospital-header h1 {
    font-family: 'serif';
}

.hospital-brand p {
    margin-left: 80px;
    font-weight: bold;
    color:white;
    font-family: 'Times New Roman', Times, serif;
}

.hospital-name {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    font-family: 'Noto Sans Devanagari', sans-serif;
}

.hospital-tagline {
    font-size: 1rem;
    color: #e6f3ff;
    font-style: italic;
    font-family: 'Noto Sans Devanagari', sans-serif;
}



/* Navbar Styles */
.navbar {
    background-color: white !important;
    padding: 0.75rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    margin-top: 0px;
    font-weight: bold;
}

.navbar-brand {
    font-size: 1rem;
    font-weight: 700;
    color: #ff0000 !important;
    transition: color 0.3s ease;
    margin-left: -100px;
}

    .navbar-brand img {
        height: 60px;
        width: 180px;
    }

    .navbar-brand:hover {
        color: #00c4b4 !important;
    }

/* Mobile adjustments */
@media (max-width: 768px) {
    .navbar-brand {
        margin-left: 20px;
        font-weight: 700;
    }

    .navbar-toggler {
        border: none;
        padding: 0.5rem;
        margin-right: 15px;
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255, 0, 0, 1)' stroke-width='3' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
        width: 24px;
        height: 24px;
    }

}

.nav-link {
    font-size: 14px;
    color: #ff0000 !important;
    font-weight: 700;
    padding: 0.2rem 0.1rem;
    transition: background-color 0.3s ease;
}

    .nav-link:hover {
        background-color: #00c4b4;
        border-radius: 5px;
        color: white !important;
    }

/* Dropdown item styles */
.dropdown-item {
    font-weight: 600;
}

/* Desktop dropdown styles */
@media (min-width: 769px) {
    .nav-item.dropdown {
        margin-left: 10px;
    }

    .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .dropdown-menu {
        background-color: #77713d;
        border: none;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        margin-left: 20px;
    }

    .dropdown-item {
        color: #fff;
        padding: 0.75rem 1.5rem;
        transition: background-color 0.3s ease;
    }

        .dropdown-item:hover {
            background-color: #00c4b4;
            color: #fff;
        }
}

/* Mobile dropdown styles */
@media (max-width: 768px) {
    .dropdown-menu {
        background-color: #77713d;
        border: none;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        padding-left: 30px;
    }

    .dropdown-item {
        color: #fff;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

        .dropdown-item:hover {
            background-color: #00c4b4;
            color: #fff;
        }

    .navbar-nav {
        padding: 1rem 0;
        background-color: white;
    }

    .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1.1rem;
        font-weight: 700;
    }

    .dropdown-toggle::after {
        margin-left: 0.5rem;
    }

    .dropdown.show .dropdown-menu {
        display: block;
    }

    .navbar-nav .nav-link {
        color: #ff0000 !important;
    }
}

    .btn-danger {
        background-color: #dc3545;
        border-color: #dc3545;
        font-weight: 600;
        padding: 0.5rem 1rem;
        transition: background-color 0.3s ease, transform 0.2s ease;
    }

        .btn-danger:hover {
            background-color: #c82333;
            border-color: #c82333;
            transform: scale(1.05);
        }

    /* Main Content */
    main.container {
        background-color: #fff;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        padding: 1.5rem;
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }



    /* Responsive Design */
    @media (max-width: 768px) {
        .hospital-name {
            font-size: 1.6rem;
        }

        .hospital-tagline {
            font-size: 0.85rem;
        }

        .navbar-nav {
            text-align: left;
        }

        .btn-danger {
            margin: 1rem 0;
            width: 100%;
            font-size: 1rem;
            padding: 0.75rem;
        }

        main.container {
            padding: 1rem;
        }

        .navbar-collapse {
            background-color: #77713d;
            border-radius: 8px;
            margin-top: 0.5rem;
        }
    }

    /* Animations */
    .nav-link, .dropdown-item, .btn-danger {
        transition: all 0.3s ease-in-out;
    }

    .hospital-header, main.container, footer {
        animation: fadeIn 1s ease-in-out;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Accessibility */
    a:focus, button:focus {
        outline: 3px solid #00c4b4;
        outline-offset: 2px;
    }

    /* Font Awesome Icon Styling */
    .fas, .far {
        margin-right: 0.5rem;
    }

    /* Touch-friendly adjustments */
    @media (max-width: 768px) {
        .nav-link, .dropdown-item, .btn-danger {
            touch-action: manipulation;
        }
    }


    /* Carousel Styles */
    .carousel {
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        margin-bottom: 2rem;
    }



    .carousel-control-prev,
    .carousel-control-next {
        background-color: rgba(0, 48, 135, 0.7);
        width: 50px;
        height: 50px;
        top: 50%;
        margin: 0 10px;
        border-radius: 50%;
        transition: background-color 0.3s ease;
    }

        .carousel-control-prev:hover,
        .carousel-control-next:hover {
            background-color: #00c4b4;
        }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        filter: invert(1);
    }

    .carousel-caption {
        background-color: rgba(0, 48, 135, 0.7);
        color: #fff;
        padding: 1rem;
        border-radius: 0 0 8px 8px;
        font-family: 'Roboto', 'Noto Sans Devanagari', sans-serif;
        font-weight: 500;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    }

        .carousel-caption h5 {
            font-size: 1.5rem;
            margin-bottom: 0.5rem;
        }

        .carousel-caption p {
            font-size: 1rem;
        }

    @media (max-width: 768px) {
        .carousel-inner img {
            height: 250px;
        }

        .carousel-control-prev,
        .carousel-control-next {
            width: 40px;
            height: 40px;
        }

        .carousel-caption h5 {
            font-size: 1.2rem;
        }

        .carousel-caption p {
            font-size: 0.9rem;
        }
    }